OTP Generator
A minimal JavaScript one time password generator module in Astral.js that provides a simple way to generate OTP for your web app.
Link
All ready-to-use files required
<link href="https://cdn.jsdelivr.net/gh/thaboyaluya/Astral.CSS-2.3.4/css/astral.min.css" rel="stylesheet" >
<script src="https://cdn.jsdelivr.net/gh/thaboyaluya/Astral.CSS-2.3.4/js/astral.min.js"></script>
Usage
Simply make a plugin instance and then create a message using any of the following methods:
OTP.generateOTP()
a password will displayed in the console!
Options
Here are the default options
var defaultOptions = {
limit: 4
};
Public methods
List of available public methods:
OTP.generateOTP(userOptions);